<script lang="ts" setup>
import '../assets/time'
</script>


<template>
    <div>
        <!-- 时间倒计时代码 -->
        <div class="sidebar-box classListBox">
            <div class="aside aside-count">
                <div class="p-3"><span style="font-size: 1.2em; color: orange;"><i
                            class="fas fa-hourglass-half"></i></span> 混吃等死计时器</div>
                <div class="content">
                    <div class="item" id="dayProgress">
                        <div class="title">今日已混<span></span>小时</div>
                        <div class="progress">
                            <div class="progress-bar">
                                <div class="progress-inner progress-inner-1"></div>
                            </div>
                            <div class="progress-percentage"></div>
                        </div>
                    </div>
                    <div class="item" id="weekProgress">
                        <div class="title">这周已混<span></span>天</div>
                        <div class="progress">
                            <div class="progress-bar">
                                <div class="progress-inner progress-inner-2"></div>
                            </div>
                            <div class="progress-percentage"></div>
                        </div>
                    </div>
                    <div class="item" id="monthProgress">
                        <div class="title">本月已混<span></span>天</div>
                        <div class="progress">
                            <div class="progress-bar">
                                <div class="progress-inner progress-inner-3"></div>
                            </div>
                            <div class="progress-percentage"></div>
                        </div>
                    </div>
                    <div class="item" id="yearProgress">
                        <div class="title">今年已混<span></span>个月</div>
                        <div class="progress">
                            <div class="progress-bar">
                                <div class="progress-inner progress-inner-4"></div>
                            </div>
                            <div class="progress-percentage"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 时间倒计时代码 -->
    </div>
</template>
<style lang="scss" scoped>
/* 混吃等死计时器 */
.aside-count .content {
    padding: 15px
}

.aside-count .content .item {
    margin-bottom: 15px
}

.aside-count .content .item:last-child {
    margin-bottom: 0
}

.aside-count .content .item .title {
    font-size: 12px;
    color: var(--minor);
    margin-bottom: 5px;
    display: flex;
    align-items: center
}

.aside-count .content .item .title span {
    color: var(--theme);
    font-weight: 500;
    font-size: 14px;
    margin: 0 5px
}

.aside-count .content .item .progress {
    display: flex;
    align-items: center
}

.aside-count .content .item .progress .progress-bar {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--classC);
    width: 0;
    min-width: 0;
    flex: 1;
    margin-right: 5px
}

@keyframes progress {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 30px 0
    }
}

.aside-count .content .item .progress .progress-bar .progress-inner {
    width: 0;
    height: 100%;
    border-radius: 5px;
    transition: width 0.35s;
    -webkit-animation: progress 750ms linear infinite;
    animation: progress 750ms linear infinite
}

.aside-count .content .item .progress .progress-bar .progress-inner-1 {
    background: #bde6ff;
    background-image: linear-gradient(135deg, #50bfff 25%, transparent 25%, transparent 50%, #50bfff 50%, #50bfff 75%, transparent 75%, transparent 100%);
    background-size: 30px 30px
}

.aside-count .content .item .progress .progress-bar .progress-inner-2 {
    background: #ffd980;
    background-image: linear-gradient(135deg, #f7ba2a 25%, transparent 25%, transparent 50%, #f7ba2a 50%, #f7ba2a 75%, transparent 75%, transparent 100%);
    background-size: 30px 30px
}

.aside-count .content .item .progress .progress-bar .progress-inner-3 {
    background: #ffa9a9;
    background-image: linear-gradient(135deg, #ff4949 25%, transparent 25%, transparent 50%, #ff4949 50%, #ff4949 75%, transparent 75%, transparent 100%);
    background-size: 30px 30px
}

.aside-count .content .item .progress .progress-bar .progress-inner-4 {
    background: #67c23a;
    background-image: linear-gradient(135deg, #4f9e28 25%, transparent 25%, transparent 50%, #4f9e28 50%, #4f9e28 75%, transparent 75%, transparent 100%);
    background-size: 30px 30px
}

.aside-count .content .item .progress .progress-percentage {
    color: var(--info)
}
.progress-bar{
    background: #f1f3f6 !important;
}
.progress-inner{
    z-index: 8 !important;
}
</style>